package com.yellow.trackingservice.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.IdType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("shipment_tracking")
public class ShipmentTracking {

    @TableId(value = "tracking_id", type = IdType.AUTO)
    private Integer trackingId;

    @TableField("order_id")
    private Integer orderId;

    @TableField("status")
    private String status;

    @TableField("location")
    private String location;

    @TableField("update_time")
    private LocalDateTime updateTime;

    @TableField("estimated_delivery")
    private LocalDateTime estimatedDelivery;
}
